//
//  SceneDelegate.swift
//  chendong微博
//
//  Created by chen dong on 2021/4/1.
//

import UIKit
import SwiftUI

class SceneDelegate: UIResponder,UIWindowSceneDelegate {
    var window: UIWindow?
    
    func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
        
        if let windowScene = scene as? UIWindowScene {
            
            let window = UIWindow(windowScene: windowScene)
            window.rootViewController = CDMainViewController()
            self.window = window
            self.window?.backgroundColor = UIColor.white
            window.makeKeyAndVisible()
        }
    }
    
}
